home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / CORE.ZIP / DeskLib / !DLUser / TemplateMF / Makefile
Makefile  |  1995-08-28  |  1KB  |  49 lines

  1. # Template makefile which makes normal 
  2. # .o files for use in the main static
  3. # linking DeskLib.
  4.  
  5. # The macro $(ObjectFiles) should be set at the 
  6. # start of this file to be a space-separated
  7. # list of object files.
  8. # This is done by 'Makatic'.
  9.  
  10. # The macro $(LibName) should also be set at the 
  11. # start of this file, to be the name of the 
  12. # DeskLib sublibrary.
  13. # This is done by 'Makatic'.
  14.  
  15. # Compiler and linker flags, These can be anything. 
  16. # All essential flags are included in the macros 
  17. # $(CC) and $(ASM)
  18. #
  19. CCFlags        =    -ffahi $(CCExtra) -depend !Depend -throwback -D_DeskLib_$(LibName) -I,C:
  20. ASMFlags    =    -Stamp -NoCache -CloseExec -Quit $(ASMExtra)
  21. LibFileFlags    =    -c -o
  22.  
  23. CC        =    cc -c $(CCFlags)
  24. ASM        =    objasm $(ASMFlags)
  25. LIBFILE        =    LibFile $(LibFileFlags)
  26.  
  27.  
  28. # -------------------------------------------------------
  29. # Everything below here should probably not be changed...
  30. # -------------------------------------------------------
  31.  
  32. VPATH = @
  33.  
  34. .SUFFIXES:    .c .s .o
  35.  
  36. # Here's what we want to make...
  37. #
  38. <DeskLib_User$Dir>.o.$(LibName):    $(ObjectFiles)
  39.     $(LIBFILE) $@ $(ObjectFiles)
  40.  
  41. .c.o:
  42.     $(CC) $< -o $@
  43.     
  44. .s.o:
  45.     $(ASM) -from $< -to $@
  46.  
  47.  
  48. # Dynamic dependencies:
  49.